import java.io.File;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.Scanner;

enum z{
	b,c,d,e,f,g
}
public class Test {
public static void main(String[] args)
{
	String a="2";
	String b="aglksjdlijoihon lkjlsnfunwoijan lajsdfj by lkjadjoiwj";
	String c[] =b.split("by");
	String d[] =b.split("with");
	for(int i=0;i<c.length;i++)
	System.out.println(c[i].trim());
	for(int j=0;j<d.length;j++)
	System.out.println(d[j]);
	Scanner sc=new Scanner(a);
	System.out.println(sc.next());
	System.out.println(z.g);
	SimpleDateFormat formatter = new SimpleDateFormat("EEEE, MMM dd, yyyy HH:mm:ss a");
	String dateInString = "Friday, Jun 7, 2013 12:10:56 PM";		
	String string = "March 10, 2015";
	
	try {
		Date date = new SimpleDateFormat("MMMM dd, yyyy", Locale.ENGLISH).parse(string);
		System.out.println(date); // Sat Jan 02 00:00:00 BOT 2010
		//Date date = formatter.parse(dateInString);
		System.out.println(date);
		System.out.println(formatter.format(date));
 
	} catch (ParseException e) {
		e.printStackTrace();
	}
	//System.out.println(sc.nextLine());
	//System.out.println(sc.nextLine());
	//System.out.println(sc.nextInt());
	try
	{
	String filename="abc.txt";
	File tempfile = new File(filename);
	System.out.println(tempfile.getAbsolutePath());
	System.out.println(tempfile.isFile());
	}catch (Exception e){}
}

}
